package com.xx.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SwaggerConfiguration {

    @Bean
    public OpenAPI swaggerOpenApi() {
        return new OpenAPI()
                .info(new Info().title("h5聊天室系统")
                        .description("一个基于h5的websocket聊天室")
                        .version("v1.0.0"));
//                .externalDocs(new ExternalDocumentation()
//                        .description("设计文档")
//                        .url("https://juejin.cn/user/254742430749736/posts"));
    }
}